package com.wlhse.dao;

import com.wlhse.entity.StudyCasePojo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudyCaseDao {

    int addStudyCase(StudyCasePojo studyCasePojo);

    int deleteStudyCase(@Param("id") Integer id);

    int updateStudyCase(StudyCasePojo studyCasePojo);

    List<StudyCasePojo> queryStudyCases(StudyCasePojo studyCasePojo);

    int queryStudyCasesCount(StudyCasePojo studyCasePojo);

    StudyCasePojo queryStudyCasesById(@Param("id") int id,@Param("url")String url);

}
